package com.bz.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.bz.common.PageInfo;
import com.bz.dao.WorkTaskDao;
import com.bz.entity.WorkTaskEntity;
import com.bz.service.IWorkTaskService;

@Service
public class WorkTaskServiceImpl implements IWorkTaskService {

    @Autowired
    private WorkTaskDao workTaskDao;

    @Override
    public PageInfo<WorkTaskEntity> get(PageInfo page, LambdaQueryWrapper<WorkTaskEntity> query) {
        return workTaskDao.selectPage(page, query);
    }

    @Override
    public void delete(Long id) {
        workTaskDao.deleteById(id);
    }

    @Override
    public List<WorkTaskEntity> get(LambdaQueryWrapper<WorkTaskEntity> query) {
        return workTaskDao.selectList(query);
    }

}
